package com.ls.blog.mapper;

import com.ls.blog.dto.CommentDTO;
import com.ls.blog.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ls.blog.vo.PageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lishun
 * @since 2022-01-14
 */
public interface CommentMapper extends BaseMapper<Comment> {


    /**
     * 查找一级评论
     * @param pageVO
     * @return
     */
    List<CommentDTO> listCommentByArticleIdId(@Param("pageVo") PageVO pageVO);

    /**
     * 分页查出子评论
     * @return
     */
    List<CommentDTO> listReplys(@Param("pageVo") PageVO pageVO);

    /**"
     * 后台查询评论列表
     * @param pageVO
     * @return
     */
    List<CommentDTO> listCommentDTO(PageVO pageVO);

    List<CommentDTO> sureComments(@Param("pageVO") PageVO pageVO);


}

